package com.siyue.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AdminLogoutServlet extends TopServlet {


	private static final long serialVersionUID = 123456789012345013L;


	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

	request.getSession().removeAttribute("admin");
	request.setAttribute("message","");
	request.getSession().invalidate();
	this.sendRedirect(request, response,"/adminlogin.jsp");
	
	}
}
